﻿<%@ Page Title="" Language="C#" MasterPageFile="~/trangchu/canhan/canhan1.Master"
    AutoEventWireup="true" CodeBehind="myInfor.aspx.cs" Inherits="Thv.trangchu.canhan.myInfor" %>

<%@ Register Assembly="DevExpress.Web.v11.1, Version=11.1.8.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxPanel" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.v11.1, Version=11.1.8.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxPopupControl" TagPrefix="dx" %>
<%@ Register Assembly="DevExpress.Web.ASPxEditors.v11.1, Version=11.1.8.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script type="text/javascript" language="javascript">
        function ShowCreateAccountWindow() {
            pcCreateAccount.Show();
            txtPass1.Focus();
        }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="tieude" runat="server">
Thông tin cá nhân
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="noidung" runat="server">
    <table width="100%">
        <tr>
            <td style="width: 3%">
                &nbsp;
            </td>
            <td style="width: 20%">
                &nbsp;
            </td>
            <td style="width: 77%">
                <dx:ASPxHyperLink ID="ASPxHyperLink1" runat="server" Text="Thay mật khẩu">
                    <ClientSideEvents Click="function(s, e) { ShowCreateAccountWindow(); }" />
                </dx:ASPxHyperLink>
            </td>
        </tr>
        <tr>
            <td>
            </td>
            <td>
                <dx:ASPxLabel ID="lberoo" runat="server" Text="Thông báo!" Visible="false" ForeColor="Red">
                </dx:ASPxLabel>
            </td>
            <td>
                <dx:ASPxLabel ID="lbThongbao" runat="server" Text="" Visible="false" ForeColor="Red">
                </dx:ASPxLabel>
            </td>
        </tr>
        <tr>
            <td>
                &nbsp;</td>
            <td>
                Ảnh đại diện&nbsp;</td>
            <td>
                <asp:FileUpload ID="FileUpload1" runat="server" />
            </td>
        </tr>
        <tr>
            <td>
            </td>
            <td>
                Tên đăng nhập
            </td>
            <td>
                <dx:ASPxTextBox ID="txtUser" runat="server" Width="230px" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                    CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                    MaxLength="50">
                    <ValidationSettings Display="Dynamic" SetFocusOnError="True" ValidationGroup="gr1"
                        RequiredField-IsRequired="True" RequiredField-ErrorText="Tên đăng nhập không được rỗng">
                        <RegularExpression ErrorText="Tên đăng nhập phải từ 6 ký tự trở lên" ValidationExpression="[^\s]{6,50}" />
                        <RequiredField IsRequired="True" ErrorText="T&#234;n đăng nhập kh&#244;ng được rỗng">
                        </RequiredField>
                    </ValidationSettings>
                </dx:ASPxTextBox>
            </td>
        </tr>
        <tr>
            <td>
            </td>
            <td>
                Email
            </td>
            <td>
                <dx:ASPxTextBox ID="txtEmai" runat="server" Width="230px" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                    CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                    MaxLength="50">
                    <ValidationSettings Display="Dynamic" SetFocusOnError="True" ValidationGroup="gr1"
                        RequiredField-IsRequired="True" RequiredField-ErrorText="Bạn chưa nhập email">
                        <RegularExpression ErrorText="Email không hợp lệ" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" />
                        <RequiredField IsRequired="True" ErrorText="Bạn chưa nhập email"></RequiredField>
                    </ValidationSettings>
                </dx:ASPxTextBox>
            </td>
        </tr>
        <tr>
            <td>
            </td>
            <td>
                Họ và chữ lót
            </td>
            <td>
                <dx:ASPxTextBox ID="txtfisnam" runat="server" Width="230px" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                    CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                    MaxLength="50">
                    <ValidationSettings Display="Dynamic" SetFocusOnError="True" ValidationGroup="gr1"
                        RequiredField-IsRequired="True" RequiredField-ErrorText="Bạn chưa nhập họ và chữ lót">
                    </ValidationSettings>
                </dx:ASPxTextBox>
            </td>
        </tr>
        <tr>
            <td>
            </td>
            <td>
                Tên
            </td>
            <td>
                <dx:ASPxTextBox ID="txtTen" runat="server" Width="230px" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                    CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                    MaxLength="50">
                    <ValidationSettings Display="Dynamic" SetFocusOnError="True" ValidationGroup="gr1"
                        RequiredField-IsRequired="True" RequiredField-ErrorText="Bạn chưa nhập tên">
                    </ValidationSettings>
                </dx:ASPxTextBox>
            </td>
        </tr>
        <tr>
            <td>
            </td>
            <td>
                Ngày sinh
            </td>
            <td>
                <dx:ASPxComboBox ID="cbNgay" runat="server" Width="70px" Style="float: left; margin-right: 10px"
                    CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue"
                    Spacing="0" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" ValueType="System.String">
                    <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Editors/Loading.gif">
                    </LoadingPanelImage>
                    <LoadingPanelStyle ImageSpacing="5px">
                    </LoadingPanelStyle>
                </dx:ASPxComboBox>
                <dx:ASPxComboBox ID="cbThang" runat="server" Width="70px" Style="float: left; margin-right: 10px"
                    CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" CssPostfix="Office2010Blue"
                    Spacing="0" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" ValueType="System.String">
                    <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Editors/Loading.gif">
                    </LoadingPanelImage>
                    <LoadingPanelStyle ImageSpacing="5px">
                    </LoadingPanelStyle>
                </dx:ASPxComboBox>
                <dx:ASPxComboBox ID="cbNam" runat="server" Width="70px" Style="float: left" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                    CssPostfix="Office2010Blue" Spacing="0" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                    ValueType="System.String">
                    <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Editors/Loading.gif">
                    </LoadingPanelImage>
                    <LoadingPanelStyle ImageSpacing="5px">
                    </LoadingPanelStyle>
                </dx:ASPxComboBox>
            </td>
        </tr>
        <tr>
            <td>
            </td>
            <td>
                Số cmnd
            </td>
            <td>
                <dx:ASPxTextBox ID="txtCMND" runat="server" Width="170px" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                    CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                    MaxLength="9">
                    <MaskSettings Mask="000000000" />
                    <ValidationSettings Display="Dynamic" SetFocusOnError="True" ValidationGroup="gr1"
                        RequiredField-ErrorText="Bạn chưa nhập số CMND" RequiredField-IsRequired="True">
                        <RequiredField IsRequired="True" ErrorText="Bạn chưa nhập số CMND"></RequiredField>
                    </ValidationSettings>
                </dx:ASPxTextBox>
            </td>
        </tr>
        <tr>
            <td>
            </td>
            <td>
                Địa chỉ
            </td>
            <td>
                <dx:ASPxTextBox ID="txtAdress" runat="server" Width="300px" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                    CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                    MaxLength="200">
                    <ValidationSettings Display="Dynamic" SetFocusOnError="True" ValidationGroup="gr1"
                        RequiredField-IsRequired="True" RequiredField-ErrorText="Bạn chưa nhập địa chỉ">
                    </ValidationSettings>
                </dx:ASPxTextBox>
            </td>
        </tr>
        <tr>
            <td>
            </td>
            <td>
                Số điện thoại
            </td>
            <td>
                <dx:ASPxTextBox ID="txtPhone" runat="server" Width="170px" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                    CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                    <ValidationSettings Display="Dynamic" ErrorText="*" SetFocusOnError="True" ValidationGroup="gr1"
                        RequiredField-IsRequired="True" RequiredField-ErrorText="Bạn chưa nhập điện thoại">
                        <RegularExpression ErrorText="Điện thoại không hợp lệ" ValidationExpression="0\d{9,10}" />
                        <RequiredField IsRequired="True" ErrorText="Bạn chưa nhập điện thoại"></RequiredField>
                    </ValidationSettings>
                </dx:ASPxTextBox>
            </td>
        </tr>
        <tr>
            <td>
                &nbsp;
            </td>
            <td>
                Giới tính
            </td>
            <td>
                <dx:ASPxComboBox ID="cbGioitinh" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                    CssPostfix="Office2010Blue" SelectedIndex="0" Spacing="0" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                    ValueType="System.String">
                    <Items>
                        <dx:ListEditItem Selected="True" Text="Nam" Value="Nam" />
                        <dx:ListEditItem Text="Nữ" Value="Nữ" />
                    </Items>
                    <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Editors/Loading.gif">
                    </LoadingPanelImage>
                    <LoadingPanelStyle ImageSpacing="5px">
                    </LoadingPanelStyle>
                </dx:ASPxComboBox>
            </td>
        </tr>
        <tr>
            <td>
            </td>
            <td>
                Người giới thiệu
            </td>
            <td>
                <dx:ASPxTextBox ID="txtIntroduct" runat="server" Width="170px" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                    CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                    <ValidationSettings Display="Dynamic" ErrorText="*" SetFocusOnError="True" ValidationGroup="gr1"
                        RequiredField-IsRequired="True" RequiredField-ErrorText="Bạn chưa nhập người giới thiệu">
                    </ValidationSettings>
                </dx:ASPxTextBox>
            </td>
        </tr>
        <tr>
            <td>
            </td>
            <td>
                Người chỉ định
            </td>
            <td>
                <dx:ASPxTextBox ID="txtChidinh" runat="server" Width="170px" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                    CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                    <ValidationSettings Display="Dynamic" ErrorText="*" SetFocusOnError="True" ValidationGroup="gr1"
                        RequiredField-ErrorText="Bạn chưa nhập người chỉ định" RequiredField-IsRequired="True">
                    </ValidationSettings>
                </dx:ASPxTextBox>
            </td>
        </tr>
        <tr>
            <td>
            </td>
            <td>
                Cấp bậc
            </td>
            <td>
                <dx:ASPxComboBox ID="cbCapbac" runat="server" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                    CssPostfix="Office2010Blue" SelectedIndex="0" Spacing="0" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                    ValueType="System.String">
                    <Items>
                        <dx:ListEditItem Selected="True" Text="Thành Viên" Value="Thành Viên" />
                        <dx:ListEditItem Text="Cộng Tác Viên" Value="Cộng Tác Viên" />
                    </Items>
                    <LoadingPanelImage Url="~/App_Themes/Office2010Blue/Editors/Loading.gif">
                    </LoadingPanelImage>
                    <LoadingPanelStyle ImageSpacing="5px">
                    </LoadingPanelStyle>
                </dx:ASPxComboBox>
            </td>
        </tr>
        <tr>
            <td>
            </td>
            <td>
                Thẻ ngân hàng
            </td>
            <td>
                <dx:ASPxTextBox ID="txtVisa" runat="server" Width="170px" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                    CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                </dx:ASPxTextBox>
            </td>
        </tr>
        <tr>
            <td>
            </td>
            <td>
                Tên ngân hàng
            </td>
            <td>
                <dx:ASPxTextBox ID="txtTennganhang" runat="server" Width="300px" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                    CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css">
                </dx:ASPxTextBox>
            </td>
        </tr>
        <tr>
            <td>
            </td>
            <td>
            </td>
            <td>
                <dx:ASPxButton ID="btn" runat="server" Text="Cập nhật" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                    CssPostfix="Office2010Blue" OnClick="btn_Click" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                    ValidationGroup="gr1">
                </dx:ASPxButton>
            </td>
        </tr>
    </table>
    <dx:ASPxPopupControl ID="pcCreateAccount" runat="server" CloseAction="CloseButton"
        PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter" ClientInstanceName="pcCreateAccount"
        HeaderText="Thay đổi mật khẩu" AllowDragging="True" Modal="True" EnableAnimation="true"
        EnableViewState="False" PopupHorizontalOffset="50" PopupVerticalOffset="50" Width="600px">
        <ClientSideEvents PopUp="function(s, e) { ASPxClientEdit.ClearGroup('createAccountGroup'); }" />
        <SizeGripImage Width="11px" />
        <ContentCollection>
            <dx:PopupControlContentControl runat="server">
                <dx:ASPxPanel ID="Panel2" runat="server" DefaultButton="btCreate">
                    <PanelCollection>
                        <dx:PanelContent runat="server">
                            <table width="100%">
                                <tr>
                                    <td style="width: 5%">
                                        &nbsp;
                                    </td>
                                    <td style="width: 15%">
                                        &nbsp;
                                    </td>
                                    <td style="width: 80%">
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                    </td>
                                    <td>
                                        Mật khẩu
                                    </td>
                                    <td>
                                        <dx:ASPxTextBox ID="txtPass1" runat="server" Width="230px" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                            CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                            Password="True" MaxLength="50">
                                            <ValidationSettings Display="Dynamic" SetFocusOnError="True" ValidationGroup="g2"
                                                RequiredField-IsRequired="True" RequiredField-ErrorText="Bạn chưa nhập mật khẩu">
                                                <RegularExpression ErrorText="Mật khẩu phải từ 6 ký tự trở lên" ValidationExpression="[^\s]{6,50}" />
                                                <RequiredField IsRequired="True" ErrorText="Bạn chưa nhập mật khẩu"></RequiredField>
                                            </ValidationSettings>
                                        </dx:ASPxTextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                    </td>
                                    <td>
                                        Nhập lại MK
                                    </td>
                                    <td>
                                        <dx:ASPxTextBox ID="txtPass2" runat="server" Width="230px" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                            CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                            Password="True" MaxLength="50">
                                            <ValidationSettings Display="Dynamic" ErrorText="*" SetFocusOnError="True" ValidationGroup="g2"
                                                RequiredField-IsRequired="True" RequiredField-ErrorText="Nhập lại mật khẩu">
                                                <RequiredField IsRequired="True" ErrorText="Nhập lại mật khẩu"></RequiredField>
                                            </ValidationSettings>
                                        </dx:ASPxTextBox>
                                        <asp:CompareValidator ID="CompareValidator1" runat="server" ControlToCompare="txtPass2"
                                            ControlToValidate="txtPass1" ErrorMessage="CompareValidator" ForeColor="#CC0000"
                                            ValidationGroup="gr1">Mật khẩu không khớp</asp:CompareValidator>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                    </td>
                                    <td>
                                    </td>
                                    <td>
                                        <dx:ASPxButton ID="ASPxButton1" runat="server" ValidationGroup="g2" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css"
                                            CssPostfix="Office2010Blue" SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css"
                                            Text="Cập nhật" OnClick="ASPxButton1_Click">
                                        </dx:ASPxButton>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        &nbsp;
                                    </td>
                                    <td>
                                        &nbsp;
                                    </td>
                                    <td>
                                        &nbsp;
                                    </td>
                                </tr>
                            </table>
                        </dx:PanelContent>
                    </PanelCollection>
                </dx:ASPxPanel>
            </dx:PopupControlContentControl>
        </ContentCollection>
    </dx:ASPxPopupControl>
    <asp:HiddenField ID="hdfUserID" runat="server" />
</asp:Content>
